namespace VirtualDeveloper.CodeTransformation
{
    public class ReplaceCode : ILineTransformer
    {
        private bool flipFlop;
        public string ModifyLine(string code, string toAdd)
        {
            if (flipFlop)
            {
                return toAdd;
            }
            flipFlop = !flipFlop;

            return code;
        }
    }
}